#ifndef _TASK_DISPATCHER_H_
#define _TASK_DISPATCHER_H_
#include <map>
class TaskDispatcher
{
public:
    TaskDispatcher();
    ~TaskDispatcher();    
    void addTask(Msg *msg);
    void getTask(std::deque<Msg*> &taskQue);    
    static TaskDispatcher* getInstance();
private:
    std::deque<Msg*> m_taskQue;
    std::mutex m_mtx;
    static TaskDispatcher* m_instance;    
};

#endif
